package com.chenchao.javageneric;

import java.util.LinkedHashMap;

/**
 * @encoding : UTF-8
 * @Time : 2020/11/13 19:04
 * @Author : Chen Chao
 * @File : javaSE.com.chenchao.javageneric.LinkedHashMapTest.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 * LinkedHashMap,有序，怎么存放，怎么显示
 */
public class LinkedHashMapTest {
    public static void main(String[] args) {
        LinkedHashMap<String, Integer> stringIntegerLinkedHashMap = new LinkedHashMap<>();
        stringIntegerLinkedHashMap.put("张三",12);
        stringIntegerLinkedHashMap.put("李四",121);
        stringIntegerLinkedHashMap.put("王五",12);
        stringIntegerLinkedHashMap.put("赵六",13);
        System.out.println(stringIntegerLinkedHashMap);
    }
}
